InputDomain

class InputDomain : Domain

InputDomain represents Input protocol domain request/response operations and events that can be captured.

Functions

description
Link copied to clipboard
fun description(): String
Returns domain description.
dispatchKeyEvent
Link copied to clipboard
fun dispatchKeyEvent(input: DispatchKeyEventRequest): Single<RequestResponseFrame>
Dispatches a key event to the page.
dispatchMouseEvent
Link copied to clipboard
fun dispatchMouseEvent(input: DispatchMouseEventRequest): Single<RequestResponseFrame>
Dispatches a mouse event to the page.
dispatchTouchEvent
Link copied to clipboard
fun dispatchTouchEvent(input: DispatchTouchEventRequest): Single<RequestResponseFrame>
Dispatches a touch event to the page.
emulateTouchFromMouseEvent
Link copied to clipboard
Emulates touch event from the mouse event parameters.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open fun getDependencies(): List<Domain>
Returns domain dependencies.
insertText
Link copied to clipboard
fun insertText(input: InsertTextRequest): Single<RequestResponseFrame>
This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.
name
Link copied to clipboard
fun name(): String
Returns domain name.
setIgnoreInputEvents
Link copied to clipboard
fun setIgnoreInputEvents(input: SetIgnoreInputEventsRequest): Single<RequestResponseFrame>
Ignores input events (useful while auditing page).
synthesizePinchGesture
Link copied to clipboard
fun synthesizePinchGesture(input: SynthesizePinchGestureRequest): Single<RequestResponseFrame>
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
synthesizeScrollGesture
Link copied to clipboard
fun synthesizeScrollGesture(input: SynthesizeScrollGestureRequest): Single<RequestResponseFrame>
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
synthesizeTapGesture
Link copied to clipboard
fun synthesizeTapGesture(input: SynthesizeTapGestureRequest): Single<RequestResponseFrame>
Synthesizes a tap gesture over a time period by issuing appropriate touch events.

Sources

jvm source
Link copied to clipboard